@extends('admin::layouts.master')
@section('content')
    <div class="x_panel">
        <div class="x_title">
            <h2>轮播图列表 </h2>
            <ul class="nav navbar-right panel_toolbox">
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="x_content">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>#</th>
                    <th>名称</th>
                    <th>跳转地址</th>
                    <th>缩略图</th>
                    <th>是否显示</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($silder as $v)
                    <tr>
                        <th scope="row">{{$v['id']}}</th>
                        <td>{{$v['title']}}</td>
                        <td>{{$v['url']}}</td>
                        <td>
                            <img style="width: 25px;height: 25px;" src="{{$v['images'][0]}}" alt="">
                        </td>
                        <td>@if($v['is_show'] ==1) 是 @else 否 @endif</td>
                        <td>
                            <a href="/silder/silder/{{$v['id']}}/edit" class="label label-success">编辑</a>
                            <a onclick="del({{$v['id']}},'/silder/silder/','/silder/silder')" class="label label-danger">删除</a>
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
    {{ $silder->links() }}
@endsection

@section('script')

@endsection
